import { ref } from "vue";
export const loginUser = ref({
    user_name : "",
    password : ""
});
export const rules = ref({
    user_name: [
        {
            message: "user_name cloud not be empty...",
            required: true,
            trigger: 'blur' //离开的时候去校验
        }
    ],
    password: [
        {
            required: true,
            message: "Password cloud not be empty...",
            trigger: 'blur'
        },
        {
            min: 3,
            max: 30,
            message: "Password's length has to be 6 to 30 characters...",
            trigger: 'blur' //离开的时候去校验
        }
    ]
})